package com.mashiro.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mashiro.common.annotation.Excel;
import com.mashiro.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 验收管理对象 moe_acceptance
 *
 * @author mashiro
 * @date 2023-04-14
 */
public class MoeAcceptance extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 验收评价项ID
     */
    private Long id;

    /**
     * 项目所属ID
     */
    @Excel(name = "项目所属ID")
    private Long projectId;

    /**
     * 项目所属
     */
    @Excel(name = "项目所属")
    private String projectName;

    /**
     * 验收时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "验收时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acceptanceTime;

    /**
     * 验收专家
     */
    @Excel(name = "验收专家")
    private String acceptanceExpert;

    /**
     * 验收意见
     */
    private String acceptanceOpinions;

    /**
     * 评分
     */
    private Long grade;

    /**
     * 附件
     */
    private String file;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 删除标志
     */
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Date getAcceptanceTime() {
        return acceptanceTime;
    }

    public void setAcceptanceTime(Date acceptanceTime) {
        this.acceptanceTime = acceptanceTime;
    }

    public String getAcceptanceExpert() {
        return acceptanceExpert;
    }

    public void setAcceptanceExpert(String acceptanceExpert) {
        this.acceptanceExpert = acceptanceExpert;
    }

    public String getAcceptanceOpinions() {
        return acceptanceOpinions;
    }

    public void setAcceptanceOpinions(String acceptanceOpinions) {
        this.acceptanceOpinions = acceptanceOpinions;
    }

    public Long getGrade() {
        return grade;
    }

    public void setGrade(Long grade) {
        this.grade = grade;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("projectId", getProjectId())
                .append("projectName", getProjectName())
                .append("acceptanceTime", getAcceptanceTime())
                .append("acceptanceExpert", getAcceptanceExpert())
                .append("acceptanceOpinions", getAcceptanceOpinions())
                .append("grade", getGrade())
                .append("file", getFile())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
